Optimal. Leaf size=209 \[ -\frac{a \sin \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{CosIntegral}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{2 b^2}-\frac{a \sin \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{CosIntegral}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 b^2}+\frac{a \cos \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Si}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 b^2}-\frac{a \cos \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Si}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 b^2}+\frac{\sin (c+d x)}{b d^2}-\frac{x \cos (c+d x)}{b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.347542, antiderivative size = 209, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 6, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.316, Rules used = {3345, 3296, 2637, 3303, 3299, 3302} \[ -\frac{a \sin \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{CosIntegral}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{2 b^2}-\frac{a \sin \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{CosIntegral}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 b^2}+\frac{a \cos \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Si}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 b^2}-\frac{a \cos \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Si}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 b^2}+\frac{\sin (c+d x)}{b d^2}-\frac{x \cos (c+d x)}{b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3345
Rule 3296
Rule 2637
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int \frac{x^3 \sin (c+d x)}{a+b x^2} \, dx &=\int \left (\frac{x \sin (c+d x)}{b}-\frac{a x \sin (c+d x)}{b \left (a+b x^2\right )}\right ) \, dx\\ &=\frac{\int x \sin (c+d x) \, dx}{b}-\frac{a \int \frac{x \sin (c+d x)}{a+b x^2} \, dx}{b}\\ &=-\frac{x \cos (c+d x)}{b d}-\frac{a \int \left (-\frac{\sin (c+d x)}{2 \sqrt{b} \left (\sqrt{-a}-\sqrt{b} x\right )}+\frac{\sin (c+d x)}{2 \sqrt{b} \left (\sqrt{-a}+\sqrt{b} x\right )}\right ) \, dx}{b}+\frac{\int \cos (c+d x) \, dx}{b d}\\ &=-\frac{x \cos (c+d x)}{b d}+\frac{\sin (c+d x)}{b d^2}+\frac{a \int \frac{\sin (c+d x)}{\sqrt{-a}-\sqrt{b} x} \, dx}{2 b^{3/2}}-\frac{a \int \frac{\sin (c+d x)}{\sqrt{-a}+\sqrt{b} x} \, dx}{2 b^{3/2}}\\ &=-\frac{x \cos (c+d x)}{b d}+\frac{\sin (c+d x)}{b d^2}-\frac{\left (a \cos \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\sin \left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{\sqrt{-a}+\sqrt{b} x} \, dx}{2 b^{3/2}}-\frac{\left (a \cos \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\sin \left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{\sqrt{-a}-\sqrt{b} x} \, dx}{2 b^{3/2}}-\frac{\left (a \sin \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\cos \left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{\sqrt{-a}+\sqrt{b} x} \, dx}{2 b^{3/2}}+\frac{\left (a \sin \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\cos \left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{\sqrt{-a}-\sqrt{b} x} \, dx}{2 b^{3/2}}\\ &=-\frac{x \cos (c+d x)}{b d}-\frac{a \text{Ci}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right ) \sin \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 b^2}-\frac{a \text{Ci}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right ) \sin \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 b^2}+\frac{\sin (c+d x)}{b d^2}+\frac{a \cos \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Si}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 b^2}-\frac{a \cos \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Si}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{2 b^2}\\ \end{align*}
Mathematica [C] time = 0.414608, size = 202, normalized size = 0.97 \[ -\frac{a d^2 \sin \left (c-\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{CosIntegral}\left (d \left (x+\frac{i \sqrt{a}}{\sqrt{b}}\right )\right )+a d^2 \sin \left (c+\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{CosIntegral}\left (d \left (x-\frac{i \sqrt{a}}{\sqrt{b}}\right )\right )+a d^2 \cos \left (c-\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{Si}\left (d \left (x+\frac{i \sqrt{a}}{\sqrt{b}}\right )\right )-a d^2 \cos \left (c+\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{Si}\left (\frac{i \sqrt{a} d}{\sqrt{b}}-d x\right )-2 b \sin (c+d x)+2 b d x \cos (c+d x)}{2 b^2 d^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.036, size = 1184, normalized size = 5.7 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] time = 1.82013, size = 406, normalized size = 1.94 \begin{align*} \frac{i \, a d^{2}{\rm Ei}\left (i \, d x - \sqrt{\frac{a d^{2}}{b}}\right ) e^{\left (i \, c + \sqrt{\frac{a d^{2}}{b}}\right )} + i \, a d^{2}{\rm Ei}\left (i \, d x + \sqrt{\frac{a d^{2}}{b}}\right ) e^{\left (i \, c - \sqrt{\frac{a d^{2}}{b}}\right )} - i \, a d^{2}{\rm Ei}\left (-i \, d x - \sqrt{\frac{a d^{2}}{b}}\right ) e^{\left (-i \, c + \sqrt{\frac{a d^{2}}{b}}\right )} - i \, a d^{2}{\rm Ei}\left (-i \, d x + \sqrt{\frac{a d^{2}}{b}}\right ) e^{\left (-i \, c - \sqrt{\frac{a d^{2}}{b}}\right )} - 4 \, b d x \cos \left (d x + c\right ) + 4 \, b \sin \left (d x + c\right )}{4 \, b^{2} d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{3} \sin{\left (c + d x \right )}}{a + b x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{3} \sin \left (d x + c\right )}{b x^{2} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]